{extend name="base" /}
{block name="body"}
<style rel="stylesheet" type="text/css">
    .layui-input[readonly]{
        background-color: #ddd;
    }
</style>
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">修改密码</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container userReviseForm" action="{:url('admin/admin_user/updatePassword')}" method="post" style="margin:auto">
                    <div class="site-demo-upload">
                        <img id="LAY_demo_upload" src="https://chehu-sz-res.oss-cn-shenzhen.aliyuncs.com/uploads/2018-01-31-15-14/file/a8daca5d1007f2ff5a5e818ae76d309f.png">
                        <div class="site-demo-upbar">
                            <input type="file" name="file" class="layui-upload-file" id="test">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="username" value="{$user_info.username}"  placeholder="请输入用户名" class="layui-input" readonly="readonly"  >
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">Email</label>
                        <div class="layui-input-inline">
                            <input type="text" name="email" value="{$user_info.email}" placeholder="请输入Email" class="layui-input" readonly="readonly">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">旧密码</label>
                        <div class="layui-input-inline">
                            <input type="password" name="old_password" value="" required lay-verify="required" placeholder="请输入原密码" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">新密码</label>
                        <div class="layui-input-inline">
                            <input type="password" name="password" value="" placeholder="请输入新密码" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">确认密码</label>
                        <div class="layui-input-inline">
                            <input type="password" name="confirm_password" value="" placeholder="请再次输入新密码" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">更新</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}